package com.example.ormsqlsplicingframe1.sql;

import java.util.function.Consumer;

public interface JoinSql<E extends JoinSql<E> > extends Sql {

    ConditionSql left(String table);

    ConditionSql right(String table);

    default E left(String table, Consumer<ConditionSql> consumer){
        consumer.accept(left(table));
        return (E)this;
    }

    default E right(String table, Consumer<ConditionSql> consumer){
        consumer.accept(right(table));
        return (E)this;
    }


}
